package org.example.mini_spring.sub;

import org.example.mini_spring.Autowired;
import org.example.mini_spring.Component;
import org.example.mini_spring.PostConstruct;

@Component
public class Cat {

    @Autowired
    private Dog dog;

    @PostConstruct
    public void init(){
        System.out.println("Cat创建了 cat里面有一个属性" + dog);
    }

}
